//
//  Auction_SpecialSaleBusinessInfoLoaction_View_WX.m
//  ZITHER
//
//  Created by weixin on 2019/6/4.
//  Copyright © 2019 weixn. All rights reserved.
//

#import "Auction_SpecialSaleBusinessInfoLoaction_View_WX.h"

@implementation Auction_SpecialSaleBusinessInfoLoaction_View_WX

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        [self setCornerRadiusWithRadius:6 isMasks:YES];
        [self setUI];
    }
    return self;
}

-(void)setUI{
    [self.icon mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(10);
        make.centerY.equalTo(self).offset(0);
        make.height.mas_equalTo(15);
    }];
    [self.lab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.icon.mas_right).offset(8);
        make.right.equalTo(self).offset(-10);
        make.centerY.equalTo(self).offset(0);
    }];
}

- (BaseLab *)lab{
    if (!_lab) {
        _lab = [BaseLab initCustomLab:@"广东深圳\n罗湖区太宁街道罗湖创新大厦G座4楼403\n国行正品小卖部" color:HexColor(0x333333) font:[UIFont fontWithName:@"PingFang-SC-Regular" size:14]];
        _lab.numberOfLines = 0;
        [self addSubview:_lab];
    }
    return _lab;
}

- (BaseImageV *)icon{
    if (!_icon) {
        _icon = [BaseImageV initCustom:CGRectZero contentMode:2];
        _icon.image = [UIImage imageNamed:@"商家信息_商家"];
        [self addSubview:_icon];
    }
    return _icon;
}

@end
